<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String infectionInfoJson= (String)request.getAttribute("infectionInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_infection_info.js"></script>


<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_infection"
	method="post">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="infectionRecordCount" value="0"/>
	<table width="100%" cellspacing="0" border="0" cellpadding="0"
		id="infectionRecords">
		<thead>
			<tr style="display:none">
				<td colspan="6" style="border:none;">
					<div style="float:right">
						<input type="submit" value="保存" class="btn"> <input
							type="button" value="新增"
							onclick="addInfectionRecord()" class="btn"> &nbsp;
					</div></td>
			</tr>
			<tr>
				<td class="tdLabel_4" width="8%">感染时间</td>
				<td class="tdLabel_4" width="8%">感染部位</td>
				<td class="tdLabel_4" width="8%">院内/院外</td>
				<td class="tdLabel_4" width="10%">感染致病菌</td>
				<td class="tdLabel_4" width="8%">手术部位感染</td>
				<td class="tdLabel_4" width="8%">院感处理结果</td>
				<td class="tdLabel_4" width="8%">院感处理人员</td>
				<td class="tdLabel_4" width="12%">院感处理时间</td>
			</tr>
		</thead>
		<tbody>
			
			
		</tbody>
	</table>

</form>
<div hidden="true">
	<table>
		<tr id="templateInfectionTr">
			<td class="tdLabel_8"><input disabled="disabled" type="text" name="infectionRecords[0].infectDateTime"
				
				class="input_box" ></td>
			<td class="tdLabel_8">
			<input disabled="disabled" type="text" name="infectionRecords[0].infectedPart"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="infectionRecords[0].isNoSocomial"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="infectionRecords[0].bacteria"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
			
			<input disabled="disabled" type="text" name="infectionRecords[0].isoperinf"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="infectionRecords[0].infstate"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="infectionRecords[0].confirmer"
				
				class="input_box" >
			</td>
			<td class="tdLabel_8">
			
			<input disabled="disabled" type="text" name="infectionRecords[0].confirmedTime"
				
				class="input_box" >
			</td>
			
		</tr>
	
	</table>
</div>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		//console.log(baseInfoJson);
		var infectionInfoJson= <%=infectionInfoJson%>;
		//console.log(infectionInfoJson);
		
		initPage(baseInfoJson,infectionInfoJson);
	})
</script>